package qj.ui.console;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

import qj.ui.IConsole;

public class FileConsole implements IConsole {
	private PrintWriter pr;
	public FileConsole(String file) throws FileNotFoundException {
		pr = new PrintWriter(new FileOutputStream(file));
	}
	
	public void println(String s) {
		pr.println(s);
		pr.flush();
	}
	
	public void writeln(String s) {
		println(s);
	}

	public String readLine() {
		throw new UnsupportedOperationException();
	}

	public String readLine(String str) {
		throw new UnsupportedOperationException();
	}

	public String readLineUntil(String limit) {
		throw new UnsupportedOperationException();
	}

	public String readLineUntilDot() {
		throw new UnsupportedOperationException();
	}

	public String readLineUntilDot(String prompt1) {
		throw new UnsupportedOperationException();
	}

	public String readLineUntilDot(String prompt1, String prompt2) {
		throw new UnsupportedOperationException();
	}

}
